package com.yxw.live_vod_backend_boot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;


/** 
 * @author liuxin
 * @create 2023-12-17 11:17:55 
 * @description 点播视频用量 
 */
@Data
@TableName(value ="yx_vod_dosage")
@ApiModel(value = "点播视频用量" , description="yx_vod_dosage")
public class YxVodDosageEntity  implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "dosage_id",type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="主键")
    private Long dosageId;

    @TableField(value="day_time")
    @ApiModelProperty(value="统计时间 yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date dayTime;

    @TableField(value="band_width")
    @ApiModelProperty(value="带宽（Mbps）")
    private BigDecimal bandWidth;

    @TableField(value="traffic")
    @ApiModelProperty(value="流量用量(GB)")
    private BigDecimal traffic;

    @TableField(value="storage")
    @ApiModelProperty(value="存储用量（GB）")
    private BigDecimal storage;

    @TableField(value="trans_duration")
    @ApiModelProperty(value="转码时长（h）")
    private BigDecimal transDuration;

    @TableField(value="create_time")
    @ApiModelProperty(value="创建时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField(value="update_time")
    @ApiModelProperty(value="更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

}
